package game.module.mj;

public class MjConstants {
	public static final byte[] cardData_two = new byte[]{
			0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,						//万子
			0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,						//万子
			0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,						//万子
			0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,						//万子
			0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,						//索子
			0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,						//索子
			0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,						//索子
			0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,						//索子
			0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,						//同子
			0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,						//同子
			0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,						//同子
			0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,						//同子
			0x38,0x39,				    	//番子  东南西 北中发白 春夏
			//56								//番子
												//番子
			                                    //番子
			0x41,0x42,0x43,0x44,0x45,0x46,                          //花子 秋冬梅兰竹菊
	};
	public static final byte[] cardData = new byte[]{
			0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,						//万子
			0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,						//万子
			0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,						//万子
			0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,						//万子
			0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,						//索子
			0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,						//索子
			0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,						//索子
			0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,						//索子
			0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,						//同子
			0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,						//同子
			0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,						//同子
			0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,						//同子
			0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,				    	//番子  东南西 北中发白 春夏
			0x31,0x32,0x33,0x34,0x35,0x36,0x37,//56								//番子
			0x31,0x32,0x33,0x34,0x35,0x36,0x37,									//番子
			0x31,0x32,0x33,0x34,0x35,0x36,0x37,	                                //番子
			0x41,0x42,0x43,0x44,0x45,0x46,                            //花子 秋冬梅兰竹菊
	};
	public static final short[] location = new short[]{//根据数组下标找到庄家位置
			0,0,1,2,3,
			0,1,2,3,
			0,1,2,3,
	};
	public static final int GAME_PLAYER         =       4;
	public static final int MAX_RIGHT_COUNT     =      3 ;                                 //最大权位DWORD个数			
	public static final int INDEX_REPLACE_CARD  =      33;
	//用于财神的转换，如果有牌可以代替财神本身牌使用，则设为该牌索引，否则设为MAX_INDEX. 注:如果替换牌是序数牌,将出错.
	public static final int m_cbEndLeftCount    =       16;                                  //臭庄数目
	public static final int  MAX_HUA_CARD		=		8	;								//花牌个数
	public static final int  MAX_REPERTORY		=		136	;				                //最大剩余
	public static final int MAX_WEAVE           =       5;                                  //最大组合
	public static final int  MAX_INDEX  =               42;                                 //最大索引
	public static final int  MAX_PLAY	=				4;									//玩家数量
	public static final int  MAX_COUNT	=				17;									//最大手牌
	
	public static final int MASK_COLOR  =               0xF0;                               //花色掩码
	public static final int MASK_VALUE  =               0x0F;                              //数值掩码
	
	public static final int WIK_NULL	=				0x00;								//没有类型
	public static final int WIK_LEFT	=				0x01;								//左吃类型
	public static final int WIK_CENTER	=				0x02;								//中吃类型
	public static final int WIK_RIGHT	=				0x04;								//右吃类型
	public static final int WIK_PENG	=				0x08;								//碰牌类型
	public static final int WIK_GANG	=				0x10;								//杠牌类型
	public static final int WIK_LISTEN	=				0x20;								//吃牌类型
	public static final int WIK_CHI_HU	=				0x40;								//吃胡类型
	public static final int WIK_REPLACE	=				0x80;								//花牌替换
	public static final int INVALID_CHAIR =            0xFFFF	;	                        //无效的椅子
	public static final int MASK_CHI_HU_RIGHT =		   0x0fffffff;                          //
	
	public static final int CHK_NULL	    	=			0x0000	;							//非胡
	public static final int CHR_ZI_MO		    =			0x0001	;							//自摸
	public static final int CHR_PENG_PENG_HU	=   		0x0002	;							//碰碰胡
	public static final int CHR_BA_DUI			=    		0x0004	;							//八对
	public static final int CHR_DI_HU			=   		0x0008	;							//地胡
	public static final int CHR_TIAN_HU		    =			0x0010	;							//天胡
	public static final int CHR_DAN_DIAO		=   		0x0020	;							//单吊
	public static final int CHR_THREE_KING		=   		0x0040	;							//3金倒
	public static final int CHR_RUAN_HU			=   		0x0080	;							//软胡
	public static final int CHR_YING_HU			=   		0x0100	;							//硬胡
	public static final int CHR_SHUANG_FAN		=   		0x0200	;							//双翻	
	public static final int CHR_QING_YI_SE		=   		0x0400	;							//清一色
	public static final int CHR_BA_DUI_YING		=   		0x1000	;							//硬八对	
	
	public static final int EstimatKind_GangCard =           1;                                 //杠牌效验
	public static final int EstimatKind_OutCard =            2;                                 //出牌效验
	
	public static final int Gang_Score          =             10;                              //杠牌得分
	public static final int Base_Score          =             8;                               //赢牌底分
	public static final int Zhuang_Score        =             16;
	/*
    	权位类。
                  注意，在操作仅位时最好只操作单个权位.例如
        CChiHuRight chr;
        chr |= (chr_zi_mo|chr_peng_peng)，这样结果是无定义的。
                  只能单个操作:
        chr |= chr_zi_mo;
        chr |= chr_peng_peng;
*/
}
